/*

*** This do file creates the replication results for 

Visa restrictions and bilateral travel, The Professional Geographer, 62 (2), 2010, pp. 1-11

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/

use "Article for PG (visa and travel).dta", replace

** NOTE: You must have listcoef and fitstat installed. If not, type "findit listcoef" and "findit fitstat" and install.

xi: reg lnvisitors  visa polity2reporter polity2partner lndistance  lnpopcountrypartner lnpopcountryreporter lngdppcconstreporter lngdppcconstpartner coloniallinkplusspainrussia sameregion  violentconflict  i.year*i.reporter i.year*i.partner,  cluster(dyadid)
estat vce

xi: reg lnvisitors  visa polity2reporter polity2partner lndistance  lnpopcountrypartner lnpopcountryreporter lngdppcconstreporter lngdppcconstpartner coloniallinkplusspainrussia sameregion  violentconflict  if  year==2004,  cluster(dyadid)
estat vce

xi: areg lnvisitors  visa lndistance  coloniallinkplusspainrussia sameregion  i.partner if  year==2004,  cluster(dyadid) absorb(reporter)
estat vce

xi: poisson visitors  visa polity2reporter polity2partner lndistance  lnpopcountrypartner lnpopcountryreporter lngdppcconstreporter lngdppcconstpartner coloniallinkplusspainrussia sameregion  violentconflict  i.year i.reporter i.partner ,  cluster(dyadid)
listcoef visa, percent help
quietly xi: poisson visitors  visa polity2reporter polity2partner lndistance  lnpopcountrypartner lnpopcountryreporter lngdppcconstreporter lngdppcconstpartner coloniallinkplusspainrussia sameregion  violentconflict  i.year  i.reporter i.partner 
fitstat

xi: poisson visitors  visa polity2reporter polity2partner lndistance  lnpopcountrypartner lnpopcountryreporter lngdppcconstreporter lngdppcconstpartner coloniallinkplusspainrussia sameregion  violentconflict  if  year==2004,  cluster(dyadid)
listcoef visa, percent help
quietly xi: poisson visitors  visa polity2reporter polity2partner lndistance  lnpopcountrypartner lnpopcountryreporter lngdppcconstreporter lngdppcconstpartner coloniallinkplusspainrussia sameregion  violentconflict  if  year==2004,
fitstat

xi: poisson visitors  visa lndistance  coloniallinkplusspainrussia sameregion  i.reporter i.partner  if year==2004,  cluster(dyadid)
listcoef visa, percent help
quietly xi: poisson visitors  visa lndistance  coloniallinkplusspainrussia sameregion  i.reporter i.partner  if  year==2004,
fitstat
